﻿@{
    ViewBag.Title = "Đổi Mật Khẩu";
    Layout = "~/Views/Shared/_AdminLayoutPage.cshtml";
}
@model Project_2._2.ViewModels.PasswordChange_ViewModels

<style>
    .align-right{ text-align:right;}
</style>
@if (TempData["Message"] != null)
{
    <script language='javascript' type='text/javascript'>
        var ms = '@Html.Encode( TempData["Message"])';
        alert(ms);
    </script>
}

<div class="grid_12">
    <div class="block-border">
        <div class="block-header">
            Tạo Tài Khoản Mới
            @Html.ActionLink("Trở về", "Default", "Admin", null, new { @class = "button" })
        </div>
        <div class="block-content">
             @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true);
                @Html.AntiForgeryToken();
                <table style="padding:10px 0 15px 150px ; line-height:35px">
                    <tr>
                        <td class="align-right">@Html.LabelFor(m => m.OldPassword) &nbsp;<span style="color:red">*</span></td>
                        <td>
                            @Html.PasswordFor(m => m.OldPassword, new { @class = "Textbox" })
                            @Html.ValidationMessageFor(m => m.OldPassword)
                        </td>
                    </tr>
                    <tr>
                        <td class="align-right">@Html.LabelFor(m => m.NewPassword)&nbsp;<span style="color:red">*</span></td>
                        <td>
                            @Html.PasswordFor(m => m.NewPassword, new { @class = "Textbox" })
                            @Html.ValidationMessageFor(m => m.NewPassword)
                        </td>
                    </tr>
                    <tr>
                        <td class="align-right">@Html.LabelFor(m => m.Con_New_Password)&nbsp;<span style="color:red">*</span></td>
                        <td>
                            @Html.PasswordFor(m => m.Con_New_Password, new { @class = "Textbox" })
                            @Html.ValidationMessageFor(m => m.Con_New_Password)
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" class="Button" value="Gửi Yêu cầu" />
                        </td>
                    </tr>

                </table>
            }
        </div>
    </div>
</div>

